package org.yylnb.openplatform.websocket;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.yylnb.openplatform.websocket.mq.SubPaymentResultMQBean;

/**
 * @author RainLin
 * @date 2020/7/28 - 21:05
 */
@SpringBootApplication
@EnableWebSocket
@EnableBinding({SubPaymentResultMQBean.class})
public class websocket extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(websocket.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(websocket.class);
    }
}

